/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.Hashtable;
/*    */ 
/*    */ public class ChannelIndexFiles
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public ChannelIndexFiles()
/*    */   {
/* 17 */     this.properUtil = new ProperUtil();
/* 18 */     this.file_path = this.properUtil.getFilePathByModel("channel");
/*    */   }
/*    */ 
/*    */   public String getChNameById(String ch_id) throws IOException {
/* 22 */     SearchData search = new SearchData();
/* 23 */     ArrayList paraList = new ArrayList();
/* 24 */     paraList.add(new SearchModel("0", "ch_id", ch_id));
/* 25 */     ArrayList list = search.getSearchInfo(this.file_path, paraList);
/* 26 */     String ch_name = "";
/* 27 */     Hashtable infoMap = new Hashtable();
/* 28 */     if ((list != null) && (list.size() > 0)) infoMap = (Hashtable)list.get(0);
/* 29 */     if (infoMap.get("ch_name") != null) ch_name = infoMap.get("ch_name").toString();
/* 30 */     return ch_name;
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.ChannelIndexFiles
 * JD-Core Version:    0.6.0
 */